Repository navigation
Fix ignored module failures incorrectly failing the pipeline - #2327
Merged
Merged
Conversation
…ing as Passed Modules configured with IgnoreFailuresCondition were causing two bugs: 1. The pipeline reported as Failed despite the failure being configured to be ignored 2. The summary table showed the module as "Passed" instead of "Ignored" Root cause: When ModuleExecutionPipeline handled an ignored failure, it returned a result without re-throwing, so ModuleRunner called MarkModuleCompleted with success=true. This caused ModuleStateTracker to record Status.Successful. Meanwhile, PipelineSummary.GetStatus() checked only ModuleResultType.Failure without considering that the failure was ignored. Fix: Pass the actual module status through to the state tracker via a statusOverride parameter, and exclude IgnoredFailure results from pipeline failure determination. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
thomhurst
temporarily deployed
to
Pull Requests
February 7, 2026 23:31 — with
GitHub Actions
Inactive
thomhurst
temporarily deployed
to
Pull Requests
February 7, 2026 23:31 — with
GitHub Actions
Inactive
thomhurst
temporarily deployed
to
Pull Requests
February 7, 2026 23:31 — with
GitHub Actions
Inactive
An ignored failure still executed — it shouldn't be recorded as skipped. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
thomhurst
temporarily deployed
to
Pull Requests
February 7, 2026 23:34 — with
GitHub Actions
Inactive
thomhurst
temporarily deployed
to
Pull Requests
February 7, 2026 23:34 — with
GitHub Actions
Inactive
thomhurst
temporarily deployed
to
Pull Requests
February 7, 2026 23:34 — with
GitHub Actions
Inactive
thomhurst
enabled auto-merge
February 7, 2026 23:43
This was referenced Feb 9, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
IgnoreFailuresConditionno longer cause the pipeline to fail — the failure is properly ignored as intended6 passed | 1 ignored) instead of counting them as passedRepro: https://github.com/thomhurst/AsyncSemaphore/actions/runs/21785317440/job/62855734047
Root Cause
When
ModuleExecutionPipelinehandled an ignored failure, it setexecutionContext.Status = Status.IgnoredFailureand returned a result without re-throwing. This caused two bugs:ModuleRunner.ExecuteCorecalledMarkModuleCompleted(moduleType, true)unconditionally (no exception = success), soModuleStateTrackerrecordedStatus.Successfulin the timeline → table showed "Passed"PipelineSummary.GetStatus()checked onlyModuleResultType.Failurewithout consideringModuleStatus == IgnoredFailure→ pipeline reported as FailedChanges
PipelineSummary.csGetStatus()excludesIgnoredFailureresults from pipeline failureIModuleStateTracker.csStatus? statusOverrideparameter toMarkModuleCompletedIModuleScheduler.csModuleScheduler.csstatusOverridethroughModuleStateTracker.csstatusOverridewhen provided instead of computing from thesuccessboolModuleRunner.csmoduleState.Result?.ModuleStatusas override; fixes activity tracing for ignored failuresMetricsCollector.csWasSuccessfulderived from actual status; ignored failures excluded from passed/failed countsSpectreResultsPrinter.csTest plan
IgnoreFailuresConditionwhere the module fails should complete successfullyN passed | 1 ignoredinstead ofN+1 passed🤖 Generated with Claude Code